import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login/login'
import user_center from '@/components/login/user_center'
import add_patient from '@/components/login/add_patient'
import edit_patient from '@/components/login/edit_patient'
import patients from '@/components/login/patients'
import setting from '@/components/login/setting'
import container from '@/components/container'
import main_page from '@/components/mainpage/main_page'
import service_item from '@/components/mainpage/service_item'
import order_details from "@/components/ordering/order_details"
import ordering from "@/components/ordering/ordering"
import order_list from "@/components/order_process/order_list"
import information from "@/components/others/information"
import order_pay from "@/components/ordering/order_pay"
import success from "@/components/ordering/success"
import check_weixinpay from "@/components/ordering/check_weixinpay"
import order_process from "@/components/order_process/order_process"
import order_eval from "@/components/order_process/order_eval"
import order_oid_details from "@/components/order_process/order_oid_details"
import order_appoint from "@/components/ordering/order_appoint"
Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path:'/',
      name:'container',
      component:container,
    },{
      path:'/add_patient',
      name:'添加病患',
      component:add_patient
    },
    {
      path:'/patients',
      name:'病患管理',
      component:patients
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path:'/service_item',
      name:'service_item',
      component:service_item
    },
    {
      path:'/user_center',
      name:'user_center',
      component:user_center
    },
    {
      path:'/order_process',
      name:'order_process',
      component:order_process,
    },
    {
      path:'/order_eval',
      name:'order_eval',
      component:order_eval
    },
    {
      path:'/order_details',
      name:'order_details',
      component:order_details,
    },
    {
      path:'/order_details/ordering',
      name:'ordering',
      component:ordering
    },
    {
      path:'/order_list',
      name:'order_list',
      component:order_list
    },
    {
      path:'/information',
      name:'information',
      component:information,
    },
    {
      path:'/order_details/order_pay/',
      name:'order_pay',
      component:order_pay
    },
    {
      path:'/order_details/success',
      name:'success',
      component:success
    },
    {
      path:'/order_details/check_weixinpay',
      name:'检查微信支付',
      component:check_weixinpay
    },
    {
      path:'/order_appoint',
      name:'再次预约',
      component:order_appoint
    },{
      path:'/order_oid_details',
      name:'父订单详情',
      component:order_oid_details
    },
    {
      path:'/setting',
      name:'设置界面',
      component:setting
    },{
      path:'/edit_patient',
      name:'编辑病患',
      component:edit_patient
    }
  ]
})

